package com.cqupt.scanning.system.acl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cqupt.scanning.system.acl.entity.AclPermission;
import com.cqupt.scanning.system.acl.entity.vo.AssignPermissionsVO;
import com.cqupt.scanning.system.utils.result.R;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author 宋宝梁
 * @since 2021-07-05
 */
public interface AclPermissionService extends IService<AclPermission> {

    List<String> selectPermissionValueByUserId(Integer id);

    R assignPermissions(AssignPermissionsVO assignPermissionsVO);

    R getAllPermissions();

    List<AclPermission> selectPermissionByUserId(Integer id);

    R getPermissionsByRoleId(Integer roleId);
}
